package cate.common.table.farm.island.sheet;

import cate.common.table.ESheet;
import cate.common.table.farm.island.row.IslandfloorRow;
import easy.java.dev.note.NoteClass;

@NoteClass(value = "迷失神庙层级")
public class IslandFloorSheet extends ESheet<IslandfloorRow> {

    @Override
    public String getSheetName() {
        return "迷失神庙层级";
    }

    public IslandfloorRow getInitFloor(int difficulty) {
        return getList().stream().filter(e -> e.difficulty == difficulty && e.floorNo == 1).findAny().orElse(null);
    }
}
